
import request from '@/utils/request'

export default {
  getList(params) {
    return request({
	    url: '/sxIndexCategory/',
	    method: 'get',
	    params
	  })
  },

  get(params) {
    return request({
      url: '/sxIndexCategory/' + params.categoryId,
      method: 'get',
      params
    })
  },

  getPage(params) {
    return request({
      url: '/sxIndexCategory/page',
      method: 'get',
      params
    })
  },

  update(params) {
    return request({
      url: '/sxIndexCategory/update',
      method: 'post',
      params
    })
  },

  insert(params) {
    return request({
      url: '/sxIndexCategory/insert',
      method: 'post',
      params
    })
  },

  remove(params) {
    return request({
      url: '/sxIndexCategory/delete',
      method: 'post',
      params
    })
  }
}
